package com.xingxue.logistics.common.vo;

import com.xingxue.logistics.common.dto.SysRole;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Kris at 2018/10/10 14:10
 */
public class RoleCheck extends SysRole {
    private boolean checked;

    public RoleCheck() {
    }

    public RoleCheck(SysRole role) {
        super(role.getId(), role.getName(), role.getType(), role.getState());
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("checked", checked)
                .append("extend from").append(super.toString())
                .toString();
    }
}
